package com.ly.heart.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.OrderSupplierEntity;

/**
 * 采购订单与供应商关联Mapper接口
 *
 * @author cxl
 * @date 2024-06-06
 */
public interface OrderSupplierMapper extends BaseMapper<OrderSupplierEntity> {
    /**
     * 查询采购订单与供应商关联
     *
     * @param id 采购订单与供应商关联ID
     * @return 采购订单与供应商关联
     */
    public OrderSupplierEntity selectOrderSupplierEntityById(String id);

    /**
     * 查询采购订单与供应商关联列表
     *
     * @param orderSupplierEntity 采购订单与供应商关联
     * @return 采购订单与供应商关联集合
     */
    public List<OrderSupplierEntity> selectOrderSupplierEntityList(OrderSupplierEntity orderSupplierEntity);

    /**
     * 新增采购订单与供应商关联
     *
     * @param orderSupplierEntity 采购订单与供应商关联
     * @return 结果
     */
    public int insertOrderSupplierEntity(OrderSupplierEntity orderSupplierEntity);

    /**
     * 修改采购订单与供应商关联
     *
     * @param orderSupplierEntity 采购订单与供应商关联
     * @return 结果
     */
    public int updateOrderSupplierEntity(OrderSupplierEntity orderSupplierEntity);

    /**
     * 删除采购订单与供应商关联
     *
     * @param id 采购订单与供应商关联ID
     * @return 结果
     */
    public int deleteOrderSupplierEntityById(String id);

    /**
     * 批量删除采购订单与供应商关联
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderSupplierEntityByIds(String[] ids);
}
